package com.kanas.webak.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.kanas.webak.config.service.PropertiesService;

@Component("webak.service.datadictionary")
public class DataDictionaryImpl implements DataDictionary {
	
	@Autowired
	private PropertiesService propertiesService;
	
	@Override
	public String getProperty(String key) {
		return this.propertiesService.findOne(key).getValue();
	}

	public PropertiesService getPropertiesService() {
		return propertiesService;
	}

	public void setPropertiesService(PropertiesService propertiesService) {
		this.propertiesService = propertiesService;
	}
	
}
